<?php
class IndexAction extends BaseAction
{
	public function index()
	{
		$this->assign('nav', 1);
		$this->display();
	}
	
	public function malls()
	{
        $this->assign('web_title', '商场列表');
		$this->assign('nav', 2);
		$MarketModel = D('Market');
		$malls = $MarketModel->getCityBusMalls(0);
		$this->assign('malls', $malls);
		$this->display();
	}
	
	public function brands()
	{
        $this->assign('web_title', '品牌列表');
		$this->assign('nav', 3);
		$initial = $this->_get('i');
		$initials = D('Brand')->getInitials();
		if($initial){
			$map = array();
			$map['initials'] = $initial;
			$brands = D('Brand')->field('name, ename')->where($map)->select();
			$this->assign('brands', $brands);
		}
		$this->assign('initials', $initials);
		$this->display();
	}
}
?>